import React from 'react';
import classNames from 'classnames';

import styles from './index.less';

interface Props {
  children: React.ReactNode;
  center?: boolean;
  style?: React.CSSProperties;
}

function Wrapper({ children, center, style }: Props) {
  return (
    <div className={classNames(styles.Wrapper, center && styles.center)} style={style}>
      {children}
    </div>
  );
}
export default Wrapper;
